package s08.ch10.homework;

import java.text.ParseException;

public class Main {

	public static void main(String[] args) throws ParseException {

		Promotionable[] cars = CarFactory.parse();

		for (Promotionable car : cars) {
			System.out.println(car.getDiscountedPrice());
		}
	}

}
